﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Auths
{
    [Table("Adm_Roles")]
    public class AdminRole : IEntity<int>, IHasCreationTime
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        [Column("RoleId")]
        public int Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [StringLength(32)]
        [Required]
        public string Name { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(256)]
        [Required]
        public string Description { get; set; }
        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsDefault { get; set; }
        public DateTime CreationTime { get; set; }
    }
}
